﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Administrator_ctSanPham : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["ID"] == null)
        {
            this.FormView1.DefaultMode = FormViewMode.Insert;
        }
    }
    protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
    {
        Response.Redirect("SanPham.aspx");
    }
    protected void InsertCancelButton_Click(object sender, EventArgs e)
    {
        Response.Redirect("SanPham.aspx");
    }
    protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e)
    {
        Response.Redirect("SanPham.aspx");
    }
    protected void FormView1_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        
    }
}